package com.zmzncs.lmtc.module.system.pojo.user;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 任建波
 * @since 2019-09-10
 */
@Data
public class UserSearchFrom implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "当前页")
    @NotNull
    private Integer currentPage;

    @ApiModelProperty(value = "每页多少条")
    @NotNull @Max(100)
    private Integer size;

    @ApiModelProperty(value = "角色id")
    private Long roleId;

    @ApiModelProperty(value = "部门id")
    private Long deptId;

    @ApiModelProperty(value = "用户名/账号")
    private String keyword;

    public Page getPage() {
        return new Page(currentPage, size);
    }


}
